/*
 * @Descripttion: 里程碑和计划与进度
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-10-25 10:07:27
 * @LastEditors: GW
 * @LastEditTime: 2021-10-27 18:16:06
 */
import { axios } from "../../utils/request";

//列表
export function list (parameter) {
    return axios({
        url: "/project/plan/getList",
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}

//保存
export function save (data) {
    return axios({
        url: "/project/plan/save",
        method: "post",
        data: data
    });
}

//删除
export function remove (data) {
    return axios({
        url: "/project/plan/delete",
        method: "post",
        data: data
    });
}

//获取项目详情
export function detailsById (data) {
    return axios({
        url: "/erp/project/getDetail",
        method: "get",
        params: data,
        timeout: 500000,
    });
}



//-======================================任务==========================================
//列表
export function listTask (parameter) {
    return axios({
        url: "/project/task/getList",
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}

//保存
export function saveTask (data) {
    return axios({
        url: "/project/task/save",
        method: "post",
        data: data
    });
}

//删除
export function removeTask (data) {
    return axios({
        url: "/project/task/delete",
        method: "post",
        data: data
    });
}